Android 11i(2022)-11i(2022) SP1 interface changes

Historical version interface changes

This document introduces the interface adjustment and other important influence of the compatibility possibly affected between two neighboring versions. The principle of interface adjustment is to develop a more efficient, more powerful, and perfect application to users.

Interface changes from SuperMap iMobile 11i(2022) for Android to SuperMap iMobile 11i(2022) SP1 for Android.

ID Changes
Module
1.
The class CoordinateConvert adjusts the following aspects:

New Interfaces:

  • setHostnameVerifier(X509HostnameVerifier hostnameVerifier): sets the verifier to verify the host name
onlineservices
2.
OnlineService adjusts the following aspects:

New Interfaces:

  • setHostnameVerifier(X509HostnameVerifier hostnameVerifier): sets the verifier to verify the host name
onlineservices
3.
Map adjusts the following aspects:

New Interfaces:

  • setClipRegionEnabled(boolean value): sets whether the map clip is valid.
  • IsClipRegionEnabled(): gets whether the map clip is valid.
  • setClipRegion(GeoRegion region): sets the region for the map clip.
  • getClipRegion(): gets the region of the map clip.

Interface changes:

  • setDrawCADTextAsPOI(boolean nDrawCADTextAsPOI): sets whether CAD text is drawn as the poi mode.
  • isDrawCADTextAsPOI(): gets whether CAD text is drawn as the poi mode.
mapping
4.
Layer3DDynamicObject adjusts the following aspects:

New Interfaces:

  • SetTrackingObjectInfo(String fileName, int ID, boolean bTrack): Sets or cancels the current camera tracking dynamic layer model object.
realspace
5.
AREffectElement adjusts the following aspects:

New Interfaces:

  • setParentNode(EffectView arEffectView,Node parent): binds the element to other nodes in the view.
ar
6.
AREffectView adjusts the following aspects:

New Interfaces:

  • getEffectViewRecorder(): gets the pose view recorder.
ar
7.
CameraWindowRenderer adjusts the following aspects:

New Interfaces:

  • RayTestStatusListener: Ray-detection listening events
  • setRayTestStatusListener(RayTestStatusListener rayTestStatusListener): sets ray-detection listening events.

Inner class: TaskManager:

  • OnRefreshListener: the refreshing listener
  • setOnRefreshListener(OnRefreshListener onRefreshListener): sets the refreshing listener
  • getInstance(): gets the instance
ar
8.
ConvertTool adjusts the following aspects:

New Interfaces:

  • getDistance(Point a, Point b): gets the distance between two points
ar
9.
New class ErrorCallback
ar
10.
New class ModelGroupScene
ar
11.
ArSceneLoader adjusts the following aspects:

New Interfaces:

  • ArSceneLoader(AREffectElement parent): the parent location of the constructor
ar
12.
ARGeoPrism adjusts the following aspects:

New Interfaces:

  • getPrismHeightList(): Gets the collection of heights
ar
13.
BaseShape adjusts the following aspects:

New Interfaces:

  • isRenderable(): whether it can be rendered
  • setRenderable(boolean renderable): sets whether the objects can be rendered.
ar
14.
PresetUtils adjusts the following aspects:

New Interfaces:

  • correctHitPointVertical(ARGeoPrism geoPrism, Point3D targetPoint): corrects collision points with sides of AR prismatic objects.
  • correctHitPointBottom(ARGeoPrism geoPrism, Point3D targetPoint): corrects collision points with bottoms of AR prismatic objects.
  • correctHitPointTop(ARGeoPrism geoPrism, Point3D targetPoint): corrects collision points with tops of AR prismatic objects.
  • getScreenTouchNearPointIndex(android.graphics.Point p, List list): Gets the sequence number of the closest point on the clicked screen.
ar
15.
Shape adjusts the following aspects:

New Interfaces:

  • drawPolygon(Mode mode, List pointList,ArrayList normalVectorList): draws polygons through points.
ar
16.
Skybox adjusts the following aspects:

New Interfaces:

  • setTextureMap(Bitmap textureMap): sets the texture picture
ar
17.
EffectViewRecorder adjusts the following aspects:

New Interfaces:

  • setFolderPath(String folderPath): sets the folder path
ar
18.
RecordParameter adjusts the following aspects:

Interface Changes:

  • getTimeStamp(): gets the relative time stamp.
  • setTimeStamp(long timeStamp): sets the relative time stamp.
ar
19.
ImageScanner adjusts the following aspects:

New Interfaces:

  • calculateDeviceInfo(ARAugmentedImage e,Location imageLocation): calculates the azimuth when the camera is activated.
ar
20.
ScreenPointTool adjusts the following aspects:

New Interfaces:

  • getScreenDensityDPI(Context context): gets dpi of the screen
ar
21.
VideoEffectViewHelper adjusts the following aspects:

Added enumeration:

  • Setting.AUTO_ADAPT_SIZE: according to the original size, automatically adapts to the size.
  • Setting.CHANGE_SCALE: keeps the original size and changes the proportions.
  • Setting.CHANGE_SIZE: keeps the original size and changes the proportions.

New Interfaces:

  • setSizeByMediaPlayer(final View view, final MediaPlayer mediaPlayer): sets the size of "View" according to the media file to prevent the video from being stretched.
ar
22.
VideoEffectView adjusts the following aspects:

New Interfaces:

  • getVideoFilePath(): gets the video file path.
ar
23.
New class XmlNode
ar
24.
New class XmlNodeParser
ar
25.
New class VideoEffectView2
ar
26.
EffectView adjusts the following aspects:

New Interfaces:

  • destroyResources(): manually call to destroy resources.
  • getUAVLayers(): gets the drone layer.
  • worldToScreenPoint(Point3D p): converts real-world points to on-screen points.
  • getMapName(): gets the map name.
  • setMapName(String mapName): sets the map name.
ar
27.
Scene adjusts the following aspects:

New Interfaces:

  • setAutoLockOffset(Point3D value):Sets the offset of the camera relative to the locked object, which can be used when locking the target object Changes the offset of the x, y, and z axes of the camera object in meters.
realspace